<template>
  <div>
    <h1>审核进度</h1>
    <el-result v-if="agency.astatus === '1'" icon="success" title="成功提示" subTitle="您的账号已通过审核">
      <template slot="extra">
        <el-button type="primary" size="medium">返回</el-button>
      </template>
    </el-result>
    <el-result v-if="agency.astatus === '0'" icon="warning" title="警告提示" subTitle="您的账号还在审核中">
      <template slot="extra">
        <el-button type="primary" size="medium">返回</el-button>
      </template>
    </el-result>
    <el-result v-if="agency.astatus === '2'" icon="error" title="错误提示" subTitle="您的申请被驳回，请致电：xxxxx询问原因">
      <template slot="extra">
        <el-button type="primary" size="medium">返回</el-button>
      </template>
    </el-result>
  </div>
</template>

<script>
export default {
  name: "AgencyBossReviewProgress",
  data(){
    return{
      agency:{}
    }
  },
  mounted() {
    let agency = JSON.parse(sessionStorage.getItem("agency"))
    axios({
      method:"get",
      url:`http://localhost:8081/index/getAgencyById/${agency.aid}`
    }).then(res=>{
      console.log(res)
      this.agency = res.data.data
    }).catch(err=>{
      console.log(err)
    })
  }
}
</script>

<style scoped>

</style>
